//
//  RequsetManager.h
//  Leisure
//
//  Created by lanou on 16/6/28.
//  Copyright © 2016年 张凡. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void (^ReauqestComplete)(NSData *data);//请求完成后将data输出
typedef void (^UpdateUI)();//请求结束,刷新UI
@interface RequsetManager : NSObject

//请求数据,根据类型会自动识别
+ (void)fetchDataWithUrl:(NSString *)url parametr:(NSDictionary *)parametr mehtod:(NSString *)method complete:(ReauqestComplete)complete updateUI:(UpdateUI)update;

@end
